package com.itany.pojo;


import java.io.Serializable;

/**
 * 图书类型
 */
public class BookType  implements Serializable {
    /**
     * 类型id
     */
    private Integer id;
    /**
     * 类型名称
     */
    private String typetext;
    /**
     * 父类型
     */
    private BookType fatherBookType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypetext() {
        return typetext;
    }

    public void setTypetext(String typetext) {
        this.typetext = typetext;
    }

    public BookType getFatherBookType() {
        return fatherBookType;
    }

    public void setFatherBookType(BookType fatherBookType) {
        this.fatherBookType = fatherBookType;
    }

    @Override
    public String toString() {
        return "BookType{" +
                "id=" + id +
                ", typetext='" + typetext + '\'' +
                ", fatherBookType=" + fatherBookType +
                '}';
    }
}
